import request from '@/utils/request'

// 查询自动化(联动)列表
export function listAutomate(query) {
  return request({
    url: '/system/automate/list',
    method: 'get',
    params: query
  })
}

// 查询自动化(联动)详细
export function getAutomate(id) {
  return request({
    url: '/system/automate/' + id,
    method: 'get'
  })
}

// 新增自动化(联动)
export function addAutomate(data) {
  return request({
    url: '/system/automate',
    method: 'post',
    data: data
  })
}

// 修改自动化(联动)
export function updateAutomate(data) {
  return request({
    url: '/system/automate',
    method: 'put',
    data: data
  })
}

// 删除自动化(联动)
export function delAutomate(id) {
  return request({
    url: '/system/automate/' + id,
    method: 'delete'
  })
}
// 导出自动化
export function exportAutomate(query) {
  return request({
    url: '/system/automate/export',
    method: 'get',
    params: query
  })
}
